package com.leenmvc.core.security.entity.export;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import com.leenmvc.core.annotation.PrimaryKey;

import java.util.Date;

public class LogLoginExcel {

    @PrimaryKey
    private Long id;
    /**
     *
     */
    @Excel(name = "操作")
    private Integer operation;
    /**
     *
     */
    @Excel(name = "状态",replace = {"成功_0", "失败_1"})
    private Integer status;

    /**
     * 本次登录的token
     *
     */
    @Excel(name = "本次登录的token")
    private String token;
    /**
     *
     */
    @Excel(name = "用户设备")
    private String userAgent;
    /**
     *
     */
    @Excel(name = "登录ip")
    private String ip;
    /**
     *
     */
    @ExcelIgnore
    private String creatorName;

    @ExcelIgnore
    private Date createDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getOperation() {
        return operation;
    }

    public void setOperation(Integer operation) {
        this.operation = operation;
    }

    public Integer getStatus() {
        return status;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getUserAgent() {
        return userAgent;
    }

    public void setUserAgent(String userAgent) {
        this.userAgent = userAgent;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
